<template>
	<view>
		<view class="" v-for="item in list" style="padding: 20rpx;border-radius: 20rpx;background-color: #fff;margin-bottom: 20rpx;font-size: 26rpx;">
			<view class="" style="margin-bottom: 10rpx;font-weight: 700;">
				提交所属:{{item.plugsForm.formName}}
			</view>
			<view class="" style="margin-bottom: 10rpx;">
				联系人:{{item.dataJson.contactsName}}
			</view>
			<view class="" style="margin-bottom: 10rpx;">
				联系电话:{{item.dataJson.mobile}}
			</view>
			<view class="">
				提交日期:{{item.createTime}}
			</view>
		</view>
	</view>
</template>

<script>
	import {getUserSubmitFormDataList} from '../../../utils/api.js'
	export default {
		data() {
			return {
				list:[]
			}
		},
		onShow() {
			this.getlist()
		},
		methods: {
			getlist(){
				let postdata = {
					page: 1,
					size: 50
				}
				getUserSubmitFormDataList(postdata).then(res=>{
					if(res.code==200){
						this.list=res.body.list
						this.list.forEach(item=>{
							item.dataJson=JSON.parse(item.dataJson)
						})
					}
				})
			}
		}
	}
</script>

<style lang="scss">
page{
	background-color: #F5f5f5;
	padding: 20rpx;
	box-sizing: border-box;
}
</style>
